package cn.itcast.service;

import cn.itcast.entity.AddressBook;

import java.util.List;

public interface IAddressService {
    List<AddressBook> list(Long userId);

    void save(AddressBook addressBook);

    void updateDefaultAddr(AddressBook addressBook);

    AddressBook getById(Long id);

    void updateAddr(AddressBook addressBook);

    void delete(Long ids);

    AddressBook getDefaultAddr();
}
